import client from './client/paymentClient'

// 所有json-server数据
const getAllDataJsonServer = async (params) => {
  const result = await client.getAsync({
    url: '/db',
    params
  });
  return result
}

// 查询表格数据
const getListsJsonServer = async (params) => {
    const result = await client.getAsync({
      url: '/lists',
      params
    });
    return result
  }

//   详情
  const getListsInfoJsonServer = async (params) => {
    const result = await client.getAsync({
      url: '/info',
      params
    });
    return result
  }

  // 新增
  const addListsJsonServer = async (params) => {
    const result = await client.postAsync({
      url: '/lists',
      params
    });
    return result
  }


  export {
    addListsJsonServer,
    getAllDataJsonServer,
    getListsJsonServer,
    getListsInfoJsonServer,
  }